import 'package:flutter/material.dart';
import 'package:mall/constant/app_colors.dart';
import 'package:mall/constant/app_strings.dart';
import 'package:mall/gen/r.dart';
import 'package:mall/ui/widgets/app_base_widgets/app_form_item_widget.dart';
import 'package:mall/ui/widgets/divider_line.dart';
import 'package:mall/ui/widgets/item_text.dart';
import 'package:mall/utils/image_component/image_component.dart';

class AboutUsPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(AppStrings.ABOUT_US),
        centerTitle: true,
      ),
      body: SingleChildScrollView(
        child: Container(
          margin: EdgeInsets.all(15),
          child: Column(
            children: <Widget>[
              SizedBox(height: 50),
              ImageComponent(R.image.goodsBugAddAddress.path,
                  size: 73, borderRadius: BorderRadius.all(Radius.circular(15))),
              SizedBox(height: 10),
              Text(
                'APP 名称',
                style: TextStyle(
                  color: AppColors.C_222222,
                  fontSize: 17,
                  fontWeight: FontWeight.bold,
                ),
              ),
              SizedBox(height: 10),
              Text(
                'APP 版本',
                style: TextStyle(
                  color: Color(0xff7C8298),
                  fontSize: 12,
                ),
              ),
              SizedBox(height: 40),
              //内容
              Container(
                padding: EdgeInsets.only(left: 15),
                decoration: BoxDecoration(
                  color: AppColors.C_FFFFFF,
                  borderRadius: BorderRadius.all(Radius.circular(15)),
                ),
                child: Column(
                  children: [
                    DividerLineView(),
                    AppFormItemWidget(
                      leftText: '隐私政策',
                      callback: () {},
                    ),
                    DividerLineView(),
                    AppFormItemWidget(
                      leftText: '用户协议',
                      callback: () {},
                    ),
                    DividerLineView(),
                    AppFormItemWidget(
                      leftText: '法律申明',
                      callback: () {},
                    ),
                  ],
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
